package com.lyx.common.param;

import lombok.Data;

import javax.validation.constraints.*;

/**
 * --- Be Humble and Hungry ---
 *
 * @author McMeloxD
 * @date 2024/8/13
 * @desc
 */
@Data
public class UserLogin {
    /**
     *    1.@NotNull：不能为null，但可以为empty(""," ","   ")
     *    2.@NotEmpty：不能为null，而且长度必须大于0 (" ","  ")
     *    3.@NotBlank：只能作用在String上，不能为null，而且调用trim()后，长度必须大于0("test")    即：必须有实际字符
     */
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @NotBlank(message = "密码不能为空")
    private String password;
    //手机品牌
    private String brand;
    //手机型号
    private String model;
}
